﻿package factory
{
    public class MazeFactory
    {
        public function MakeMaze():Maze
        {
            return new Maze();
        }

        public function MakeWall():Wall
        {
            return new Wall();
        }

        public function MakeRoom(number:int):Room
        {
            return new Room(number);
        }

        public function MakeDoor(room1:uint, room2:uint):WallWithDoor
        {            
            return new WallWithDoor(room1, room2);
        }
    }
}
